<script src="/static/js/datepicker/bootstrap-datepicker.js"></script>
<div class="col-sm-3">
    <input type="text" class="form-control datepicker" data-start-date="-2d" data-end-date="+1w"
           name="{$field.name}" value="{$field.value}">
</div>